package com.szsfm.vehiclemanagement.manager;

import com.szsfm.vehiclemanagement.terminal.Terminal;

/**
 * Created by zhoubigbo on 2017/11/21.
 */
public class TerminalManager {

    private Terminal terminal;

    private static TerminalManager instance;

    private TerminalManager(){}

    public static TerminalManager get(){
        if (instance==null)
            instance = new TerminalManager();
        return instance;
    }

    public void setTerminal(Terminal t){
        this.terminal = t;
    }

    public void printText(String s){
        terminal.printer.printText(s);
    }

}
